const Koa = require('koa');
const server = require('koa-static');

const path = require('path');


const URL = 'http://127.0.0.1';
const PORT = 1314;

const app = new Koa();
const home = server(path.resolve(__dirname,'../build/'));


app.use(home);

app.listen(PORT,() => {
    console.log(`服务在 ${URL}:${PORT} 上启动起来了`);
})